import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const gearboxShiftApi = {
    // 添加变速箱换挡MAP @author wuhq
    addGearboxShift: (data) => {
        return postAxios('/gearboxShift/add', data);
    },
    // 分页查询变速箱换挡MAP @author wuhq
    queryGearboxShift: (data) => {
        return postAxios('/gearboxShift/page/query', data);
    },
    // 批量删除变速箱换挡MAP @author wuhq
    batchDeleteGearboxShift: (idList) => {
        return postAxios('/gearboxShift/deleteByIds', idList);
    },
    // 修改变速箱换挡MAP  @author wuhq
    updateGearboxShift: (data) => {
        return postAxios('/gearboxShift/update',data);
    },
    // 导出全部  @author wuhq
    exportAll:(data)=>{
        return postDownloadAxios('/gearboxShift/export/all',data);
    },
    // 批量导出  @author wuhq
    batchExport: (idList) => {
        return postDownloadAxios('/gearboxShift/export/batch', idList);
    },
  getByGearboxId: (id) => {
    return getAxios(`/gearboxShift/getByGearboxId/${id}`);
  },
};
